package com.fred.util


object LocalApi {
    init {
        val rootPath = Util.resourcesPath
        System.load("${rootPath}LocalApi.dll")

    }

    external fun isRunAsAdministrator():Boolean
    external fun runAdministratorNow():Int
    external fun getSpecialFolderPath():String
    external fun exists(path:String):Boolean
    /**
     * @return false 无读权限或目录/文件不存在
     */
    external fun canRead(path:String):Boolean

    /**
     * @return false 无写权限或目录/文件不存在
     */
    external fun canWrite(path:String):Boolean

}